package com.unipay.mybatis.mapper;

import com.unipay.mybatis.pojo.User;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: SSM
 * @Author: cmy
 * @CreateTime: 2023-01-13  19:44
 * @Description: TODO
 */
public interface SelectMapper {

    User getUserByID(@Param("id") Integer id);
    List<User> getAllUser();
    int getCount();
    Map<String, Object> getUserByIdToMap(@Param("id") Integer id);
    List<Map<String, Object>> getAllUserToMap();

    @MapKey("id")
    Map<String, Object> getAllUserToMapByAnnotation();

    int delUser(@Param("id") Integer id);
}
